import Layout from '@/views/layout/layout.vue';
import { RouteRecordRaw } from 'vue-router';

export const homeRouters:Array<RouteRecordRaw> = [
  {
    path: '/',
    name: '_home',
    redirect: { name: 'Home' },
    component: Layout,
    meta: {
      title: '首页',
      menuType: 1, //目录
      icon: 'HomeOutlined',
    },
    children: [
      {
        path: '/home',
        name: 'Home',
        meta: {
          title: '首页',
          menuType: 2, //菜单
          icon: 'HomeOutlined', 
          parentMenuList: [{ name: '_home', title: '首页' }],
        },
        component: () => import('@/views/home/index.vue'),
      },
    ],
  },
];
